import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import axios from 'axios';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
axios.defaults.baseURL = '/api'
import ECharts from 'vue-echarts'
import 'echarts';

const app = createApp(App)
app.config.warnHandler = () => null
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(store)
app.use(router)
app.use(ElementPlus)
app.config.globalProperties.$axios = axios;
app.component('ECharts', ECharts)
app.mount('#app')
